<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="author" content="程月">
    <title>图片切换</title>
    <style>
        a {
            color: inherit;
            font-size: inherit;
            text-decoration: none;
        }

        * {
            box-sizing: border-box;
        }

        ul {
            padding: 0;
            margin: 0;
            list-style: none;
        }

        ul {
            width: 200px;
            border: 1px solid #ccc;
            margin: 30px auto;
        }

        nav {
            text-align: center;
            background-color: #eee;
            height: 40px;
            line-height: 40px;
            margin-bottom: 10px;
        }

        h2 {
            margin: 0;
        }

        li {
            width: 180px;
            margin: 10px;
            position: relative;
            overflow: hidden;
        }

        div,
        section {
            position: absolute;
            background-color: orange;
            color: white;
            width: 100%;
            height: 25px;
            line-height: 25px;
            padding-left: 15px;
            font-size: 14px;
        }

        section {
            bottom: 0;
        }

        .img {
            position: relative;
        }

        .img-right1 {
            position: absolute;
            top: 0;
            left: 100%;
        }
        .sec2,.div2{
            background-color: lightseagreen;
        }
        .sec3,.div3{
            background-color: lightskyblue;
        }
    </style>
</head>

<body>
    <ul>
        <nav>
            <h2>专辑推荐</h2>
        </nav>
        <li>
            <a href="#">
                <img src="./img/1_1.jpg" alt="" class="img">
                <img src="./img/1_2.jpg" alt="" class="img-right1">
                <section class="sec1">COCOOM/可可尼</section>
                <div class="div1">几何为网-极致绚烂</div>
            </a>
        </li>
        <li>
            <a href="#">
                 <img src="./img/2_1.jpg" alt="" class="img">
                 <img src="./img/2_2.jpg" alt="" class="img-right1">
                 <section class="sec2">INSUN/恩裳</section>
                <div class="div2">2013春印象</div>
            </a>
        </li>
        <li>
            <a href="#">
                <img src="./img/3_1.jpg" alt="" class="img">
                 <img src="./img/3_2.jpg" alt="" class="img-right1">
             <section class="sec3">JNBY/江南布衣</section>
             <div class="div3">NANMENG/南梦</div>
             </a>
        </li>
    </ul>

    <script src="./jquery.js"></script>
</body>

</html>
<script>
    $('li').hover(function () {
        $(this).find('.img').stop().animate({ left: -170 }, 500);
        $(this).find('.img-right1').stop().animate({ left: 0 }, 500);
        $(this).find('section').stop().animate({ bottom: -25 }, 500);
        $(this).find('div').stop().animate({ bottom: 0 }, 500);
    }, function () {
        $(this).find('.img').stop().animate({ left: 0 }, 500);
        $(this).find('.img-right1').stop().animate({ left: '100%' }, 500);
        $(this).find('section').stop().animate({ bottom: 0 }, 500);
        $(this).find('div').stop().animate({ bottom: -25 }, 500);
    });

</script>